# "http://tpshop-test.itheima.net/Home/Goods/search.html"
import requests

url =  "http://tpshop-test.itheima.net/Home/Goods/search.html"

test_data = {
    "q":"iphone"
}
#params 参数
resqonse = requests.get(url=url,params=test_data)

# resqonse = requests.get(url="http://tpshop-test.itheima.net/Home/Goods/search.html?q=iphon")

print(resqonse.status_code)
print(resqonse.text)